<?
/***
*    This file is part of Marketorama.
*
*    Marketorama is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*
*    Marketorama is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR *PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with Marketorama.  If not, see <http://www.gnu.org/licenses/>.
***/
?>
<div id="main">
    <h1>All Markets</h1>
    <div id="marketlist">
        <?php foreach($query as $row): ?>
            <div class="marketitem">    
                <img class="icon" src="<?=$row->IconUrl;?>" alt="echo($row->Name);" width="36" height="36"/>
                <div class="text">
                    
                    <div class="marketname">
                        
                        <div class="rating_bar">
                            <div style="width:<?=(($row->Score)*20)?>%"></div>
                        </div>
                        <?php echo($row->Name); ?>
                    </div>
                    
                    <div class="marketurl"><a href="<?php echo($row->Url); ?>"><?php echo($row->Url); ?></a></div>
                </div>
            </div>
        <?php endforeach ?>
    </div>
</div>
<?
    // Login only section
?>
<? if ($this->session->userdata('is_logged_in')):?>
<div id="rightbar">
    
        <h1>My markets</h1>
        <img src="http://moto-six.com/image/google_android_market_tiny.png" />
        <img src="http://m.camangimarket.com/images/logo.png" />
        <img src="http://andappstore.s3.amazonaws.com/download32.png" />    
            
</div>
<?endif?>
<?
    // End Login only section
?>
